Skip to content

feat(react): hide generative UI dispatcher tool rows in Chat - #1639

Open
blove wants to merge 1 commit into
mainfrom
blove/react-hide-genui-dispatcher-rows
Open

blove wants to merge 1 commit into
mainfrom
blove/react-hide-genui-dispatcher-rows

Conversation

@blove

@blove blove commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Angular Chat hides tool rows for the generative UI dispatcher tools through genuiToolNames (default generate_a2ui_schema, generate_json_render_spec, render_spec; libs/chat/src/lib/compositions/chat/chat.component.ts). The exclusion is unconditional, not tied to generative UI being configured. React showed the raw dispatcher row next to the rendered surface.

MessageList and Chat now take an optional genuiToolNames with the same default. Those calls drop out of tool rows and group counts, and the tool-result rows that answer them hide as well. A custom renderMessage still receives every call, and an empty array shows them all.

Registered view-tool names are not ported: React client-tool prompts (renderToolCallPrompt) deliberately keep the call in place.

Verification

  • New message-list-genui-tools.spec.tsx failed before the change (6 of 8 tests) and passes after.
  • nx run-many -t test lint type-tests -p react: lint 0 errors. In the full parallel run 11 spec files hit 5s timeouts under load; all of them pass when rerun with a 60s timeout (17 files, 218 tests).
  • inventory.mjs --check --drift warn: valid (drift is informational). No new runtime exports.
  • apps/website docs-content-rules spec: 10 passed.
  • verify-packages.spec.mjs was started but did not finish before the commit.

🤖 Generated with Claude Code

Angular Chat hides tool rows for the generative UI dispatcher tools
(generate_a2ui_schema, generate_json_render_spec, render_spec) because the
rendered surface replaces them. React showed the raw dispatcher row next to
the surface. MessageList and Chat now take genuiToolNames, defaulting to the
same three names, and drop those calls from tool rows and group counts. The
tool rows that answer them hide too, and a custom renderMessage still sees
every call. Pass an empty array to show them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@blove
blove enabled auto-merge November 17, 2026 23:40

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant